import request from '@/utils/request'
import '../utils/concrete'
export function loginByUsername(loginForm) {
  return concrete.module('SystemService').login(loginForm.username, loginForm.password)
}

export function logout() {
  return request({
    url: '/login/logout',
    method: 'post'
  })
}

export function getUserInfo(token) {
  return request({
    url: '/user/info',
    method: 'get',
    params: { token }
  })
}

